package com.lx.composetest.glpaint

import android.os.Bundle
import android.widget.LinearLayout
import androidx.activity.ComponentActivity
import androidx.appcompat.app.AppCompatActivity
import com.chillingvan.canvasgl.glcanvas.GLES20Canvas
import com.chillingvan.canvasgl.glview.GLView
import com.lx.composetest.lowlatency.InkSurfaceView

/**
 *  desc : TODO Fill the fucking desc
 *
 *
 *  @author LuXin
 *  @createTime 2024/7/31
 */
class GLPaintActivity : ComponentActivity() {
//    val canvas = GLES20Canvas()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val surfaceView = GLPainterSurfaceView(this)
        val linearLayout = LinearLayout(this)
        linearLayout.orientation = LinearLayout.HORIZONTAL
        surfaceView.layoutParams =
            (LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT)).apply {
                this.weight = 1f
            }
        linearLayout.addView(surfaceView)
        setContentView(linearLayout)
    }
}